<template>
  <div>
    <h2>Home组件内容</h2>
    <div>
      <ul class="nav nav-tabs">
        <li>
          <!-- 在 <router-link>添加 replace属性 值为真 则路由切换时 替换当前的浏览器的历史记录 -->
          <router-link
            replace
            class="list-group-item"
            active-class="active"
            to="/home/news"
            >News</router-link
          >
        </li>
        <li>
          <router-link
            replace
            class="list-group-item"
            active-class="active"
            to="/home/message"
            >Message</router-link
          >
        </li>
      </ul>
        <router-view></router-view> 

    </div>
  </div>
</template>
<script>
export default {
  name: "Home",
};
</script>